<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<c:if test="${not empty AvaliableModules}">
<script language="javascript" type="text/javascript" src="/js/modules.js"></script>
<script type="text/javascript">
<c:forEach var="module" items="${AvaliableModules}" varStatus="status">
var cp${module.id} = new dijit.layout.ContentPane({"id":"${module.name}-cp-${module.id}","title":"${module.title}","href":"http://www.ititer.com${module.url}","closable":${module.closable},"parseOnLoad":"true"});
cp${module.id}.attr("onDownloadEnd", function(){var loadedHtmlElements = dojo.byId("${module.name}-cp-${module.id}");relloadScript(loadedHtmlElements);});
contentPanels[${status.index}] = cp${module.id};
</c:forEach>
</script>
</c:if>